<script>
$(document).ready(function() {
   $("a").click(function() {			    
	var url = $(this).attr("href");
	$.get(url,function(rs){
		$("#content").html(rs);
	});				
     return false;
   });
 });
 function setArticle(id,title,url,description,thumb){	
	 parent.setArticle(id,title,url,description,thumb);
	 parent.closeWin();
 }
 function delarticle(id){
	
	 var v = $("#relationid").val();
	 var e = v.replace(';'+id+';','');
	 $("#relationid").val(e);
	 $("#right"+id).remove();
 }
 </script>
 
<table style="width:100%;line-height: 30px;">
<?php foreach ($rs['list'] as $k=>$v){?>
<tr><td  style="width:30px;"><input type="button"   onclick="setArticle('<?php echo $v['id'];?>','<?php echo $v['title'];?>','<?php echo $v['url'];?>','<?php echo $v['description'];?>','<?php echo $v['thumb'];?>')" value="确认"> </td><td>
			&nbsp;&nbsp;&nbsp;<?php echo $v['title'];?> <?php if (!empty($v['thumb'])) echo '<img src="'.MVC_WWW_HOST.'img/thumb.gif" >' ?>
</td></tr>
<?php }?>
<tr style="background:#eeeeee;">
<td align="center" colspan="2" style="background: url('');">
<?php echo $rs['html'];?></td></tr>

</table>